//
//  UserModel+WCTTableCoding.m
//  WCDBDemo
//
//  Created by 黄耀武 on 2017/8/25.
//  Copyright © 2017年 yixin. All rights reserved.
//

#import "UserModel+WCTTableCoding.h"

@implementation UserModel (WCTTableCoding)

WCDB_IMPLEMENTATION(UserModel)

WCDB_SYNTHESIZE(UserModel, userID)
WCDB_SYNTHESIZE(UserModel, username)
////WCDB_SYNTHESIZE_COLUMN(UserModel, gender, "sex") //use "description" as column name in Database
WCDB_SYNTHESIZE_COLUMN_DEFAULT(UserModel, gender, "sex", 0)
WCDB_SYNTHESIZE(UserModel, company)
//
//WCDB_PRIMARY(UserModel, userID)
//
//WCDB_INDEX(UserModel, "_index", userID)

WCDB_VIRTUAL_TABLE_MODULE(UserModel, WCTModuleNameFTS3)
WCDB_VIRTUAL_TABLE_TOKENIZE(UserModel, WCTTokenizerNameWCDB)

@end
